import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { name } from "./package.json"
import qiankun from "vite-plugin-qiankun";

const port = 8381;
const base = `http://localhost:${port}/`;

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    qiankun("vue3-app", {
      useDevMode: true,
    }),
  ],
  base: base,
  server: {
    port: port,
    origin: base,
    cors: true,
  },
})
